package cn.dai.service.iml;

import cn.dai.mapper.TestMapper;
import cn.dai.pojo.UserBo;
import cn.dai.service.TestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author daijiyong
 */
@Service
public class TestServiceIml implements TestService {

    @Resource
    private TestMapper testMapper;

    @Override
    public List<UserBo> test() {
        List<UserBo> list = testMapper.test();
        for (UserBo u : list) {
            System.out.println(u);
        }
        return list;
    }
}
